package Book;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-06-02
 * Time: 21:06
 */
public class BookList {
    private Book[] books = new Book[10];
    private int bookSize;

    public BookList() {
        this.books[0] = new Book("三国演义","罗贯中","小说",50);
        this.books[1] = new Book("水浒传","施耐庵","小说",50);
        this.books[2] = new Book("红楼梦","曹雪芹","小说",50);
        this.books[3] = new Book("西游记","吴承恩","小说",50);

        this.bookSize = 4;
    }

    public Book getBook(int i) {
        return this.books[i];
    }

    public Book[] getBooks() {
        return books;
    }
    public void setBooks(int pop,Book book) {
        this.books[pop] = book;
    }

    public int getBookSize() {
        return bookSize;
    }

    public void setBookSize(int bookSize) {
        this.bookSize = bookSize;
    }
}
